package com.orange.ui.launcher.modifier;

import com.orange.entity.IEntity;
import com.orange.entity.modifier.IEntityModifier;
import com.orange.entity.modifier.IEntityModifier.IEntityModifierListener;
import com.orange.entity.scene.Scene;
import com.orange.entity.scene.group.SceneGroup;
import com.orange.util.modifier.IModifier;

public class BaseTransitionModifierListener implements IEntityModifierListener {

	private SceneGroup mSceneGroup;
	private Scene mScene;
	private IEntityModifier mEntityModifier;

	public BaseTransitionModifierListener(SceneGroup pSceneGroup, Scene pScene, IEntityModifier pEntityModifier) {
		this.mSceneGroup = pSceneGroup;
		this.mScene = pScene;
		this.mEntityModifier = pEntityModifier;
		
		pScene.onOverridePendingTransitionStart();
	}

	public SceneGroup getSceneGroup() {
		return mSceneGroup;
	}

	public Scene getScene() {
		return mScene;
	}

	public IEntityModifier getEntityModifier() {
		return mEntityModifier;
	}

	public void onModifierStarted(IModifier<IEntity> pModifier, IEntity pItem) {
		// TODO Auto-generated method stub
		
	}

	public void onModifierFinished(IModifier<IEntity> pModifier, IEntity pItem) {
		// TODO Auto-generated method stub
		this.mScene.onOverridePendingTransitionFinish();
	}

}
